//
//  ProgressCell.m
//  ErWa
//
//  Created by 赵颜彬 on 16/3/10.
//  Copyright © 2016年 www.lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "ProgressCell.h"

@implementation ProgressCell


-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        //第一张图片
        self.firstImg = [[UIImageView alloc] init];
        [self.contentView addSubview:_firstImg];
        //第二张图片
        self.secoondImg = [[UIImageView alloc] init];
        [self.contentView addSubview:_secoondImg];
        //第三张图片
        self.thirdImg = [[UIImageView alloc] init];
        [self.contentView addSubview:_thirdImg];
        
    }
    return self;
}

-(void)layoutSubviews{
    [super layoutSubviews];
    
    self.firstImg.frame = CGRectMake(10, 10, self.contentView.frame.size.width / 3 - 20, self.contentView.frame.size.height - 20);
    self.secoondImg.frame = CGRectMake(_firstImg.frame.origin.x + _firstImg.frame.size.width + 10, 10, _firstImg.frame.size.width, _firstImg.frame.size.height);
    self.thirdImg.frame = CGRectMake(_secoondImg.frame.origin.x + _secoondImg.frame.size.width + 10, 10, _firstImg.frame.size.width, _firstImg.frame.size.height);
    
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
